SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 51434: ETL job RMB_STG_230_COUNTERPARTY results in multiple COUNTERPARTY_RK values and violates the integrity constraint of Counterparty_Mart table

DetailsAboutRate It

The ETL job RMB_STG_230_COUNTERPARTY in SAS® Risk Management for Banking violates the integrity constraint of the Counterparty_Mart staging table by permitting multiple COUNTERPARTY_RK values. The problem can occur even if the data that is loaded in the source tables do conform to the integrity constraints of those tables.

This issue occurs because the ETL job RMB_INT_100_I_COUNTERPARTY does not sufficiently consider the case in which there are multiple instances of a counterparty for different VALID_FROM_DTTM and VALID_TO_DTTM time periods.

The workaround is to remove the condition "COUNTERPARTY.VALID_FROM_DTTM <= &run_date < COUNTERPARTY.VALID_TO_DTTM" from the join condition in SQL Join 2. Then insert a WHERE clause in the SQL join with the condition "COUNTERPARTY.VALID_FROM_DTTM <= &run_date < COUNTERPARTY.VALID_TO_DTTM". That is:

  1. Open the job RMB_INT_100_I_COUNTERPARTY:

    Open RMB_INT_100_I_COUNTERPARTY job

  2. Insert a WHERE clause:

    Insert WHERE clause

  3. Remove the condition "COUNTERPARTY.VALID_FROM_DTTM <= &run_date < COUNTERPARTY.VALID_TO_DTTM" from the SQL Join:

    Remove condition from join

  4. Add the condition "COUNTERPARTY.VALID_FROM_DTTM <= &run_date < COUNTERPARTY.VALID_TO_DTTM to the WHERE clause:

    Add condition to WHERE

Alternatively, you can insert a separate extract into the job stream that extracts a single date from the Counterparty table.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Risk Management for BankingMicrosoft® Windows® for x643.119.3 TS1M2
Microsoft Windows 8 Enterprise 32-bit3.113.29.3 TS1M29.4 TS1M2
Microsoft Windows 8 Enterprise x643.113.29.3 TS1M29.4 TS1M2
Microsoft Windows 8 Pro 32-bit3.113.29.3 TS1M29.4 TS1M2
Microsoft Windows 8 Pro x643.113.29.3 TS1M29.4 TS1M2
Microsoft Windows 8.1 Enterprise 32-bit3.113.29.3 TS1M29.4 TS1M2
Microsoft Windows 8.1 Enterprise x643.113.29.3 TS1M29.4 TS1M2
Microsoft Windows 8.1 Pro3.113.29.3 TS1M29.4 TS1M2
Microsoft Windows 8.1 Pro 32-bit3.113.29.3 TS1M29.4 TS1M2
Microsoft Windows Server 2003 Datacenter Edition3.119.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition3.119.3 TS1M2
Microsoft Windows Server 2003 Standard Edition3.119.3 TS1M2
Microsoft Windows Server 2003 for x643.119.3 TS1M2
Microsoft Windows Server 20083.119.3 TS1M2
Microsoft Windows Server 2008 R23.119.3 TS1M2
Microsoft Windows Server 2008 for x643.119.3 TS1M2
Microsoft Windows Server 2012 Datacenter3.113.29.3 TS1M29.4 TS1M2
Microsoft Windows Server 2012 R2 Datacenter3.113.29.3 TS1M29.4 TS1M2
Microsoft Windows Server 2012 R2 Std3.113.29.3 TS1M29.4 TS1M2
Microsoft Windows Server 2012 Std3.113.29.3 TS1M29.4 TS1M2
Microsoft Windows XP Professional3.119.3 TS1M2
Windows 7 Enterprise 32 bit3.113.29.3 TS1M29.4 TS1M2
Windows 7 Enterprise x643.113.29.3 TS1M29.4 TS1M2
Windows 7 Home Premium 32 bit3.113.29.3 TS1M29.4 TS1M2
Windows 7 Home Premium x643.113.29.3 TS1M29.4 TS1M2
Windows 7 Professional 32 bit3.113.29.3 TS1M29.4 TS1M2
Windows 7 Professional x643.113.29.3 TS1M29.4 TS1M2
Windows 7 Ultimate 32 bit3.113.29.3 TS1M29.4 TS1M2
Windows 7 Ultimate x643.113.29.3 TS1M29.4 TS1M2
Windows Vista3.119.3 TS1M2
Windows Vista for x643.119.3 TS1M2
64-bit Enabled AIX3.113.29.3 TS1M29.4 TS1M2
64-bit Enabled HP-UX3.113.29.3 TS1M29.4 TS1M2
64-bit Enabled Solaris3.113.29.3 TS1M29.4 TS1M2
HP-UX IPF3.113.29.3 TS1M29.4 TS1M2
Linux3.113.29.3 TS1M29.4 TS1M2
Linux for x643.113.29.3 TS1M29.4 TS1M2
Solaris for x643.113.29.3 TS1M29.4 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.